def a_num(num):
    if num==0:
        return 6
    elif num==1:
        return 2
    elif num==2:
        return 5
    elif num==3:
        return 5
    elif num==4:
        return 4
    elif num==5:
        return 5
    elif num==6:
        return 6
    elif num==7:
        return 3
    elif num==8:
        return 7
    elif num==9:
        return 6

n = int(input('请输入一个整数'))
print(a_num(n))